const app = getApp()

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isDark: {
      type: Boolean,
      value: false
    },
    isLight: {
      type: Boolean,
      value: false
    },
    hideBack: {
      type: Boolean,
      value: false
    },
    title: String
  },

  /**
   * 组件的初始数据
   */
  data: {
    statusBarHeight: 40,
    titleBarHeight: 68
  },

  /**
   * 组件的方法列表
   */
  methods: {
    bindBack() {
      wx.navigateBack({
        delta: 1
      })
    }
  },

  lifetimes: {
    attached: function () {
      this.setData({
        statusBarHeight: app.globalData.statusBarHeight,
        titleBarHeight: app.globalData.titleBarHeight
      })
    }
  },

  pageLifetimes: {
    
  }
})
